<div class="page-header">
    <h5 class="content-title"><%= __('equipment.management') %><input id="isFilterShow" type="hidden" value="<%= data.isFilterShow %>" /></h5>
    <div class="pull-left">
        <ul class="fl">
            <li>
                <button class="btn btn-block btn-info newAccount"><i class="fui-plus-circle icon-menu"></i>
                    <span><%= __('equipment.addEquipment') %></span>
                </button>
            </li>
        </ul>
    </div>
</div>
<div class="queryCondition">
    <form class="query-form">
        <input type="hidden" id="_loginCustomerId" value="<%= session.userData.customerId %>" />
        <input type="hidden" id="_loginAccountId" value="<%= session.userData.userId%>" />
        <input type="hidden" id="_loginVendorId" value="<%= session.userData.vendorId%>" />
        <input type="hidden" id="accountType" value="<%=session.userData.accountType%>"/>
        <div class="row">
            <div class="col-md-3">
                <label><%= __('equipment.areaSelection') %>：</label>
                <!--<select id="customer_select"  style="width: 160px;"-->
                        <!--options codeField="id" nameField="name" name="_areaId"></select>-->

                <select id="customer_select"  style="width: 160px;"
                        class="js-example-basic-single" name="_areaId"></select>
            </div>
            <div class="col-md-3">
                <label><%= __('store.storeType') %>：</label>
                <select style="width: 160px;" id="shopType" name="_shopType"   options="" ></select>
            </div>
            <div class="col-md-3">
                <label><%= __('store.name') %>：</label>
                <input type="text" name="customer_id_obj_in_ae" placeholder="<%= __('account.fuzzySearchByName') %>">
            </div>
            <div class="col-md-3">
                <label><%= __('equipment.equipmentCode') %>：</label>
                <input type="text" name="code_like" placeholder="<%= __('account.fuzzySearchByCode') %>">
            </div>
        </div>
        <div class="row">
            <div class="col-md-3">
                <label><%= __('account.status') %>：</label>
                <select id="status" name="status_in_num" style="width: 160px;">
                    <option value="">--<%= __('account.pleaseSelect') %>--</option>
                    <option value="2"><%= __('equipment.normal') %></option>
                    <option value="1,0"><%= __('equipment.abnormal') %></option>
                </select>
            </div>
            <div class="col-md-3">
                <button type="button" class="btn btn-sm btn-inverse btn-query"><%= __('account.search') %></button>
                <button type="button" class="btn btn-sm btn-default btn-export"><%= __('store.exporting') %></button>
            </div>
        </div>
    </form>
</div>

<div class="dolphin-col-24 main" id="myContent">
    <div class="panel panel-primary box">
        <div class="panel-heading box-title">
            <h3 class="panel-title">
                <i class="fa fa-table fa-lg" aria-hidden="true"></i>
                <%= __('equipment.equipmentList') %>
            </h3>
            <div class="actions">
                <a class="btn btn-mini content-refresh" href="#">
                    <i class="fa fa-refresh"></i>
                </a>
            </div>
        </div>
        <div id="userList" class="box-content"></div>
    </div>
</div>

<div class="modal" id="account_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title"><%= __('framework.equipmentMaintainence') %></span>
            </div>
            <div class="modal-body">
                <div class="tab-pane">
                    <form class="form-horizontal edit-form">
                        <input type="hidden" class="form-control" name="id">
                        <input type="hidden" name="level" value="5">
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.subordinateStore') %></label>
                            <div class="col-md-6">
                                <select  id="myShopSel" style="width: 269px; height: 32px;"
                                        name="customer.id" class="js-example-basic-single"></select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.equipmentName') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="name" type="text" dol-validate="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.equipmentCode') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="code" type="text" dol-validate="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.equipmentType') %></label>
                            <div class="col-md-6">
                                <select class="form-control" options="deviceType" name="type"></select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.equipmentPosition') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="position" type="text" dol-validate="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.recordCycle') %></label>
                            <div class="col-md-6">
                                <select class="form-control" name="recordPeriod" dol-validate="required">
                                    <option value="0">0</option>
                                    <option value="5">5</option>
                                    <option value="10">10</option>
                                    <option value="15">15</option>
                                    <option value="30">30</option>
                                    <option value="45">45</option>
                                    <option value="60">60</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.acquisitionCycle') %></label>
                            <div class="col-md-6">
                                <select class="form-control" name="uploadPeriod" dol-validate="required">
                                    <option value="0">0</option>
                                    <option value="5">5</option>
                                    <option value="10">10</option>
                                    <option value="15">15</option>
                                    <option value="30">30</option>
                                    <option value="45">45</option>
                                    <option value="60">60</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.dataDirection') %></label>
                            <div class="col-md-6">
                                <select class="form-control" name="direction">
                                    <option value="1"><%= __('equipment.positiveDirection') %></option>
                                    <option value="0"><%= __('equipment.negtiveDirection') %></option>
                                </select>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn_submit"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<div class="modal" id="memo_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title"><%= __('equipment.editRemark') %></span>
            </div>
            <div class="modal-body">
                <div class="tab-pane">
                    <form class="form-horizontal edit-form">
                        <input type="hidden" class="form-control" name="id">
                        <input type="hidden" name="level" value="5">
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('equipment.remarks') %></label>
                            <div class="col-md-6">
                                <input class="form-control" id="memo_text" name="memo" type="text" dol-validate="required">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary memo_save"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

<div class="modal fade" id="historyModal" tabindex="-1" role="dialog" aria-labelledby="historyModalLabel">
    <div class="modal-dialog" role="document" style="left: 12%;top: 0;width: 80%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                <span class="modal-title"><%= __('equipment.historicalRecords') %></span>
            </div>
            <div class="modal-body">
                <div id="historyList" class="box-content"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
    </div>
</div>

<script src="<%= global.config.publicPath %>/page/scripts/<%= path %>.js"></script>